﻿using Ledict.ConditionExtract.BLL.WorkProcess;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Ledict.ConditionExtract
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(textBox1.Text.Trim()))
            {
                WorkThread_Public work = new WorkThread_Public();
                work.AddMatch_virtual("S" + textBox1.Text.Trim(), "单一");
                work.AddMatch_virtual("M" + textBox1.Text.Trim(), "组合");
                MessageBox.Show("添加成功！请刷新后查看！");
            }
            else
            {
                MessageBox.Show("请先输入需要添加的节点!");
                textBox1.Focus();
                return;
            }
        }
    }
}
